package com.qing.springcloud.utils;

import cn.hutool.core.util.ObjUtil;
import com.qing.springcloud.common.CommonEnum;

/**
 * @author caozhipeng
 * @date 2025/7/11
 */
public class EnumUtils {

    public static boolean equals(CommonEnum commonEnum,Integer code){
        return commonEnum.getCode()==code;
    };

    public static boolean equals(Integer code,CommonEnum commonEnum){
        return ObjUtil.equals(commonEnum.getCode(),code);
    };
}
